﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DATA;
namespace BUS
{
   public  class ContactBUS
    {
        public List<Contact> GetAllContactsList()
        {
            ContactREP acc = new ContactREP();
            return acc.GetAllContacts();
        }
        public List<Contact> GetActiveContact()
        {
            ContactREP acc = new ContactREP();
            return acc.GetActiveContact();
        }

        public bool AddContact(Contact newAccount)
        {
            ContactREP acc = new ContactREP();
            return acc.AddContact(newAccount);
        }
        public void Delete(int Accountid)
        {
            ContactREP acc = new ContactREP();
            acc.deleteContact(Accountid);
        }
        public bool UpdateContact(Contact accountup)
        {
            ContactREP acc = new ContactREP();
            return acc.UpdateContact(accountup);


        }



    }
}
